package de.staxx6.bomber.box;

import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
import com.jme3.scene.Geometry;

import de.staxx6.bomber.GameState;
import de.staxx6.bomber.Stats;

public class WallBox extends BoxBomber {
	
	public WallBox(final float newX, final float newY) {
		super(newX, newY, "WallBox");
		
		createBox();
		Stats.WALLBOXES++;
		System.out.println("WallBox@ X:" + x + " Y: " + y);
	}
	
	private void createBox() {
		Geometry geo_Box = new Geometry("Wall", box);
		Material mat_Box = new Material(GameState.ASSETMANAGER, "Common/MatDefs/Misc/Unshaded.j3md");
		mat_Box.setColor("Color", ColorRGBA.LightGray);
		geo_Box.setMaterial(mat_Box);
		boxNode.attachChild(geo_Box);
		
		//makeRigidBodyControl();
	}
	
}